package com.gitee.chili.leisure.domain;

import com.gitee.chili.leisure.base.GenerateId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * Area
 *
 * @author week solider
 * @since 2020.09.01
 */
@Data
@Entity
@EqualsAndHashCode(callSuper = true)
public class Area extends GenerateId<Long> {

    private Long id;

    @Column(name = "parent_id")
    private Long parentId;

    private String code;

    private String name;
}
